package com.jianguozh.difs.support.service.sys.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.jianguozh.difs.framework.base.BaseEntity;
import com.jianguozh.difs.support.service.constant.enums.ResTypeEnum;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 * 资源
 * </p>
 *
 * @author hanrs
 * @since 2022-03-17
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("sup_res")
public class Res extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 应用id
     */
    private String clientId;

    /**
     * 父id
     */
    private String parentId;

    /**
     * 父ids
     */
    private String parentIds;

    /**
     * 资源类型(menu:菜单;permission:授权点;app:h5应用)
     */
    private ResTypeEnum resType;

    /**
     * 资源代码
     */
    private String permission;

    /**
     * 徽章
     */
    private String badge;

    /**
     * 名称
     */
    private String resName;

    /**
     * 路径
     */
    private String path;

    /**
     * 组件
     */
    private String component;

    /**
     * 图标
     */
    private String icon;

    /**
     * 展开
     */
    private Boolean opened;

    /**
     * 显示
     */
    private Boolean display;

    /**
     * 序号
     */
    private String sort;

    /**
     * 描述
     */
    private String description;

}
